#ifndef MENU_H
#define MENU_H
#include <SFML/Graphics.hpp>
#include <vector>
#include <SFML/Audio.hpp>




class Menu
{
public:
	Menu(sf::RenderWindow &window);
	~Menu();

	//accesseur
	int getMenuState();
	

	void initMenu();
	void loadVector();
	void switchForwardMenu();
	void switchBackWardMenu();
	void setMenuState(int x);
	void displayMenu();
	void playAudio();
	void playAudioSelector();
	void stopAudio();
	void closeWindow();


private:
	sf::RenderWindow &myWindow;
	sf::Text myTitle;
	sf::Text my1Player;
	sf::Text myMultiplayer;
	sf::Text myLeaveGame;
	sf::Sprite mySkullSprite;
	sf::Font font;
	sf::Texture skullTexture;
	sf::Texture backgroundMenuText;
	sf::Sprite backgroundMenuSprite;
	int myMenuState = 0;
	sf::SoundBuffer bufferBackground;
	sf::Sound soundBackground;

	sf::SoundBuffer bufferSelector;
	sf::Sound soundSelector;

	

};
#endif